package com.shawbs.vueblog.service;

import com.shawbs.vueblog.comom.PagePrams;
import com.shawbs.vueblog.comom.Result;
import com.shawbs.vueblog.entity.Blog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 关注公众号：MarkerHub
 * @since 2021-08-12
 */
public interface BlogService extends IService<Blog> {
//    Result listPage(PagePrams pagePrams);

    Result listPage(int page,int pageSize, String keyWord);
    Result getById(Long id);

    Result addBlog(Blog blog);

    Result editBlog(Blog blog);

    Result removeBlog(Long id);

    Result removeBlogs(Collection ids);
}
